package com.nimitz.modules.approval.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.nimitz.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;




/**
 * @ClassName ApprovalInstance
 * @Author FuCun
 * @Date 2021-08-17-14:45
 * @PackageName com.nimitz.modules.approval.domain
 * @Description 审批实例表
 * @Version 1.0.0
 */
@TableName("approval_instance")
@ApiModel(value="ApprovalInstance对象", description="审批实例表")
public class ApprovalInstance extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 审批实例id
     */
    @ApiModelProperty(value = "审批实例id")
    @TableId(value = "instance_id", type = IdType.AUTO)
    private Long instanceId;

    /**
     * 审批实例编号
     */
    @ApiModelProperty(value = "审批实例编号")
    private Long instanceNo;

    /**
     * 审批流程编号
     */
    @ApiModelProperty(value = "审批流程编号")
    private Long approvalNo;

    /**
     * 当前节点id
     */
    @ApiModelProperty(value = "当前节点id")
    private Long approvalNodeId;

    /**
     * 当前节点角色id
     */
    @ApiModelProperty(value = "当前节点角色id")
    private Long approvalRoleId;

    /**
     * 提交人id
     */
    @ApiModelProperty(value = "提交人id")
    private Long userId;

    /**
     * 实例状态（0正在审核，1已审核，2已废弃）
     */
    @ApiModelProperty(value = "实例状态（0正在审核，1已审核，2已废弃）")
    private String instanceStatus;

    /**
     * 删除状态码（0：显示、2：删除）
     */
    @ApiModelProperty(value = "删除状态码（0：显示、2：删除）")
    private String delFlag;


    public Long getInstanceId() {
        return instanceId;
    }

    public void setInstanceId(Long instanceId) {
        this.instanceId = instanceId;
    }
    public Long getInstanceNo() {
        return instanceNo;
    }

    public void setInstanceNo(Long instanceNo) {
        this.instanceNo = instanceNo;
    }
    public Long getApprovalNo() {
        return approvalNo;
    }

    public void setApprovalNo(Long approvalNo) {
        this.approvalNo = approvalNo;
    }
    public Long getApprovalNodeId() {
        return approvalNodeId;
    }

    public void setApprovalNodeId(Long approvalNodeId) {
        this.approvalNodeId = approvalNodeId;
    }
    public Long getApprovalRoleId() {
        return approvalRoleId;
    }

    public void setApprovalRoleId(Long approvalRoleId) {
        this.approvalRoleId = approvalRoleId;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public String getInstanceStatus() {
        return instanceStatus;
    }

    public void setInstanceStatus(String instanceStatus) {
        this.instanceStatus = instanceStatus;
    }
    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }


    @Override
    public String toString() {
        return "ApprovalInstance{" +
            "instanceId=" + instanceId +
            ", instanceNo=" + instanceNo +
            ", approvalNo=" + approvalNo +
            ", approvalNodeId=" + approvalNodeId +
            ", approvalRoleId=" + approvalRoleId +
            ", userId=" + userId +
            ", instanceStatus=" + instanceStatus +
            ", delFlag=" + delFlag +

        "}";
    }
}
